package com.ss;

/**
 * @Auther: 520ljs
 * @Date: 2022/3/10 - 03 - 10 - 16:55
 */
public class Girl {
    //属性：
    private int age;

    //读取年龄：
    public int duquAge(){
        return age;
    }

    //设置年龄：
    public void shezhiAge(int age){
        if(age >= 30){
            this.age = 18;
        }else{
            this.age = age;
        }
    }
}
